package com.twu.biblioteca.representation;

import com.twu.biblioteca.business.LibService;

import java.util.ArrayList;

public class BookMenu extends Menu {

    private LibService libService = new LibService();
    private final static String INPUT_BOOK_ID_INFO = "Please input a book ID";

    public BookMenu() {
        validOptions = new ArrayList<String>();
        for(Integer i=0; i<100; i++) {
            validOptions.add(i.toString());
        }
    }
    public String  showMenu() {
        StringBuffer resultStr = new StringBuffer();
        resultStr.append(INPUT_BOOK_ID_INFO + "\n");
        resultStr.append( libService.viewBook());
        return resultStr.toString();
    }


}
